// pages/question/question.js

//index.js

//获取应用实例
const app = getApp();
var route = require('../../utils/route');
var config = require('../../config/config');
var httpClient = require('../../utils/httpClient');

Page({

  /**
   * 页面的初始数据
   */
  data: {
    faqs:[],
    select:'-'
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
	  this.getFaqs();
  },
  getFaqs: function () {
	var that = this;
	var method = route.queryFaqs();
	var params = {appCode:'vrp'};
	httpClient.request(method, 'POST', params, function (res, err) {
    debugger
		that.setData({
			faqs : res
		});
	}); 
  },
  seeAnswer:function(e){
	  var index = e.currentTarget.dataset.index;
	  this.setData({select:index});
  }
})